package 第八章this;

public class UserTest01 {
    public static void main(String[] args) {
        User u1 = new User(111, "ivy");
        System.out.println(u1.getName());
        System.out.println(u1.getId());

        //改名字
        System.out.print("change name:");
        u1.setName("IVY");
        System.out.println(u1.getName());
    }
}
